/* eslint-disable */
import button from './components/Button/index.vue'
import icon from './components/Icon/index.vue'
import Switch from './components/Switch/index.vue'
import input from './components/yyxInput/index.vue'

const components = [button, icon, Switch, input]

const install = function (Vue) {
  console.log(components)
  components.map((component) => {
    Vue.component(component.name, component)
  })
}

/* 支持使用标签的方式引入 */
if (typeof window !== undefined && window.Vue) {
  install.use(window.Vue)
}

export default {
  install,
  button,
  icon,
  Switch,
  input,
}
